import java.lang.*;
import java.util.*;
import rosas.lou.weatherclasses.*;

public class TestPorts2{
   public static void main(String [] args){
      PortSniffer ps = new PortSniffer();
      Hashtable returnHash = ps.findPorts();
      //System.out.println(returnHash);
      Enumeration k = returnHash.keys();
      while(k.hasMoreElements()){
         String port = (String)k.nextElement();
         System.out.println(port);
         Stack sensorStack = (Stack)returnHash.get(port);
         Enumeration e = sensorStack.elements();
         while(e.hasMoreElements()){
            String value = (String)e.nextElement();
            System.out.println(value);
         }
      }
   }
}
